package com.ruoyi.ax.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ax.mapper.AxBankCardMapper;
import com.ruoyi.ax.domain.AxBankCard;
import com.ruoyi.ax.service.IAxBankCardService;

/**
 * 新闻通知Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-07
 */
@Service
public class AxBankCardServiceImpl implements IAxBankCardService 
{
    @Autowired
    private AxBankCardMapper axBankCardMapper;

    /**
     * 查询新闻通知
     * 
     * @param id 新闻通知主键
     * @return 新闻通知
     */
    @Override
    public AxBankCard selectAxBankCardById(Long id)
    {
        return axBankCardMapper.selectAxBankCardById(id);
    }

    /**
     * 查询新闻通知列表
     * 
     * @param axBankCard 新闻通知
     * @return 新闻通知
     */
    @Override
    public List<AxBankCard> selectAxBankCardList(AxBankCard axBankCard)
    {
        return axBankCardMapper.selectAxBankCardList(axBankCard);
    }

    /**
     * 新增新闻通知
     * 
     * @param axBankCard 新闻通知
     * @return 结果
     */
    @Override
    public int insertAxBankCard(AxBankCard axBankCard)
    {
        axBankCard.setCreateTime(DateUtils.getNowDate());
        return axBankCardMapper.insertAxBankCard(axBankCard);
    }

    /**
     * 修改新闻通知
     * 
     * @param axBankCard 新闻通知
     * @return 结果
     */
    @Override
    public int updateAxBankCard(AxBankCard axBankCard)
    {
        axBankCard.setUpdateTime(DateUtils.getNowDate());
        return axBankCardMapper.updateAxBankCard(axBankCard);
    }

    /**
     * 批量删除新闻通知
     * 
     * @param ids 需要删除的新闻通知主键
     * @return 结果
     */
    @Override
    public int deleteAxBankCardByIds(Long[] ids)
    {
        return axBankCardMapper.deleteAxBankCardByIds(ids);
    }

    /**
     * 删除新闻通知信息
     * 
     * @param id 新闻通知主键
     * @return 结果
     */
    @Override
    public int deleteAxBankCardById(Long id)
    {
        return axBankCardMapper.deleteAxBankCardById(id);
    }
}
